﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>article</title>
<meta http-equiv="content-type" content="text/html;charset=GB2312" />
<meta name="Generator" content="EditPlus" />
<meta name="Author" content="" />
<link rel="stylesheet" href="/Css/admin/style.css" type="text/css" />
<link rel="stylesheet" href="../editor/editor.css" type="text/css" />
<script type="text/javascript" src="../javaScript/function.js" ></script>
<script type="text/javascript" src="../editor/edit.js"></script>
</head>

<body onload="InitDocument();">
<div class="main-box">
	<div class="head-dark-box">
		{$title}
	</div>
	<div class="body-box tip-msg">
		提示: 带 <img src="../images/star.gif" alt="*" /> 的项目为必填信息.
	</div>
	<form method="post" action="article.php" class="white-box">
		<table class="alt-table" cellspacing="0">
			<tr class="light-row">
				<td class="width-20percent">文章分类</td>
				<td>{$catPath}</td>
			</tr>
			<tr class="dark-row">
				<td>图片新闻</td>
				<td><input type="radio" name="isImg" value="1"  onclick="showObj('imgTR', 'show')"/> 是
					<input type="radio" name="isImg" value="0"   onclick="showObj('imgTR', 'hide')"/> 否
				</td>
			</tr>
			<tr class="{$imgShow}" id="imgTR">
				<td class="require-field">缩略图</td>
				<td>
					<img src="{$imgName}" alt="新闻缩略图" class="thumbnail" id="selectedThumb" />
					<input type="button" class="button" value="从相册中添加" onclick="showThumbWindow()" />
					<input type="hidden" name="imgName" id="imgName" value="{$imgName}" />
				</td>
			</tr>
			<tr class="light-row">
				<td class="require-field">文章标题</td>
				<td><input type="text" class="text-box" name="title" size="30" value="{$artTitle}" maxlength="40" /></td>
			</tr>
			<tr class="dark-row">
				<td class="require-field">发布时间</td>
				<td><input type="text" class="text-box" name="postTime" size="20" value="{$postTime}" />
					如自己更改请注意格式.
				</td>
			</tr>
			<tr class="light-row">
				<td>文章摘要</td>
				<td><textarea class="text-box" name="summary" cols="40" rows="4">{$summary}</textarea>
					小于100个汉字.
				</td>
			</tr>
			<tr class="dark-row">
				<td class="require-field">文章作者</td>
				<td><input type="text" class="text-box" name="author" size="15" value="{$author}" maxlength="20"/></td>
			</tr>
			<tr class="light-row">
				<td>文章来源</td>
				<td><input type="text" class="text-box" name="comeFrom" size="25" value="{$comeFrom}" maxlength="25"/></td>
			</tr>
			<tr class="dark-row">
				<td class="require-field">关键字</td>
				<td><input type="text" class="text-box" name="keyword" size="20" value="{$keyword}" maxlength="20"/>
					用于文章搜索,多个请用","隔开.
				</td>
			</tr>
			<tr class="light-row">
				<td>是否推荐</td>
				<td>
					<input type="radio" name="recommend" value="1" /> 推荐
					<input type="radio" name="recommend" value="0" /> 不推荐
				</td>
			</tr>
		</table>
		
		<div class="dark-row center">
				<input name="content" id="content "type="hidden" value="" />
				<input type="hidden" name="action" value="{$action}" />
				<input type="hidden" name="id" value="{$artID}" />
				<input type="hidden" name="linkPath" value="{$linkPath}" />
				<input type="hidden" name="oldPath"	value="{$oldPath}" />
				<input type="hidden" name="audit"	value="1" />
				<input type="button" class="button" value="{$buttonValue}" onclick="submitPost(this.form)" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="button" class="button" value="预 览" onclick="previewArt()" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="button" class="button" value="清 空" onclick="clearContent()" />

		</div>
	</form>
</div>
<div class="main-box">
	<div class="foot-sql">
		Query Times: {$queryTime}  Execute Time: {$executeTime} ms
	</div>
</div>
</body>
{literal}
<script>
var artContent = "{$artContent}";
//两个单选按钮的默认值
var isImgCheck = "{$isImg}";
var recommendCheck = "{$recommend}";
setRadioCheck("isImg", isImgCheck);
setRadioCheck("recommend", recommendCheck);
//显示选择文章缩略图的窗口
function showThumbWindow()
{
	var feature = "width=500,height=520px,menubar=no,location=no,status=yes,toolbar=no,resizable=no";
	window.open("listImage.php?action=selectThumb", "",feature);
}
</script>
{/literal}
</html>
